package com.example.raspberryPi_demo.mapper;

import com.example.raspberryPi_demo.entity.Equipment;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * EquipmentDAO继承基类
 */
@Repository
public interface EquipmentDAO extends MyBatisBaseDao<Equipment, String> {
    int deleteByPrimaryKey(String macAddress);

    int insert(Equipment record);

    int insertSelective(Equipment record);

    //@Select("select * from test")
    List<Equipment> selectAll();

    Equipment selectByPrimaryKey(String macAddress);

    Equipment selectByName(String raspberryPi);

    int updateByPrimaryKeySelective(String macAddress,Equipment record);

    int updateByPrimaryKey(String macAddress,Equipment record);
}